import java.util.Scanner;
import java.util.concurrent.ThreadLocalRandom;

public class RollCall {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入学生个数：");
        int n = scanner.nextInt();
        String[] students = new String[n];
        System.out.println("请输入学生姓名：");
        for (int i = 0; i < n; i++) {
            students[i] = scanner.next();
        }

        ThreadLocalRandom random = ThreadLocalRandom.current();
        int firstIndex = random.nextInt(n);
        int secondIndex = random.nextInt(n);
        while (firstIndex == secondIndex) {
            secondIndex = random.nextInt(n);
        }
        System.out.println("本次点名结果为：");
        System.out.println(students[firstIndex] + "，" + students[secondIndex]);
    }
}
